package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.TerminalUpgradedCreateDto;
import com.molichuxing.services.infrastructure.dto.response.TerminalUpgradedDto;
import com.molichuxing.services.infrastructure.dto.response.VersionContentDto;
import com.molichuxing.services.infrastructure.dto.response.VersionInfoDto;
import com.molichuxing.services.infrastructure.dto.response.VersionMobileDto;

import java.time.LocalDateTime;
import java.util.List;

/**
 * app端版本升级业务服务接口
 * @author liyg
 *
 */
public interface VersionMobileService extends RootService {

	public VersionInfoDto getVersionById(Integer versionId);

	VersionMobileDto findNewestByChannel(String channel);

	VersionMobileDto findByVersionAndChannel(String appVersion, String channel);

	Boolean findIsUpgradeBetweenDate(String channel, LocalDateTime startDate, LocalDateTime endDate);

	List<VersionContentDto> findContentByVersionId(Integer versionId);
}
